package com.itheima.controller;


import com.itheima.manager.MemberLevelManager;
import com.itheima.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/memberLevel")
public class MemberLevelController {
    @Autowired
    MemberLevelManager memberLevelManager;

    //查询所有会员等级
    @GetMapping("list")
    public R findAllMemberLevel(@RequestParam String defaultStatus){
       return R.success(memberLevelManager.findAllMemberLevel(defaultStatus));
    }





}
